<?php
$site_path = realpath(dirname(__FILE__));
define('__SITE_PATH', $site_path);

include("model/gioithieu.php");

$arr = explode("/", $_SERVER['PHP_SELF']);

$domain = substr($_SERVER['PHP_SELF'], 0, strlen($arr[1]) + 1);
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <script type="text/javascript">window.jQuery || document.write('<script type="text/javascript" src="/win-skyexpress/js/jquery191.js"><\/script>')</script> 
    </head>
    <body>
        <table>
            <tr>
                <td>Email</td>
                <td>Country</td>
                <td>Phone</td>
                <td>Address</td>
            </tr>
            <?php
            $gioithieu = Gioithieu::findAll();
            foreach ($gioithieu as $_gioithieu) {
                ?>
                <tr>
                    <td><?php echo $_gioithieu["email"] ?></td>
                    <td><?php echo $_gioithieu["country"] ?></td>
                    <td><?php echo $_gioithieu["address"] ?></td>
                    <td><?php echo $_gioithieu["phone"] ?></td>
                </tr>
            <?php } ?>
        </table>
    </body>
</html>